package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.CommonwealDao;
import com.platform.entity.CommonwealEntity;
import com.platform.service.CommonwealService;

/**
 * 公益活动表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-10-31 15:32:20
 */
@Service("commonwealService")
public class CommonwealServiceImpl implements CommonwealService {
    @Autowired
    private CommonwealDao commonwealDao;

    @Override
    public CommonwealEntity queryObject(Integer id) {
        return commonwealDao.queryObject(id);
    }

    @Override
    public List<CommonwealEntity> queryList(Map<String, Object> map) {
        return commonwealDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return commonwealDao.queryTotal(map);
    }

    @Override
    public int save(CommonwealEntity commonweal) {
        return commonwealDao.save(commonweal);
    }

    @Override
    public int update(CommonwealEntity commonweal) {
        return commonwealDao.update(commonweal);
    }

    @Override
    public int delete(Integer id) {
        return commonwealDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return commonwealDao.deleteBatch(ids);
    }
}
